import request from '@/utils/request';

export async function getFactoryByPage (params: any) {
    return request('/api/product/getFactoryByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addFactory (params: any) {
    return request('/api/product/addFactory', {
    method: 'POST',
    data: params,
  });
}

export async function updateFactory (params: any) {
    return request('/api/product/updateFactory', {
    method: 'POST',
    data: params,
  });
}

export async function delFactory (params: any) {
    return request('/api/product/delFactory', {
    method: 'POST',
    data: params,
  });
}


export async function exportFactory(params: any) {
    return request('/api/product/exportFactory', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getFactoryByPage, addFactory, updateFactory, delFactory, exportFactory }
